const Util = require('Util.js');

function saveStaff(staff) {
  return new Promise((resolve, reject) => {
    Util.post({
      title: '正在提交',
      url: "/staff/save",
      data: staff,
    }).then(data => {
      console.log("studentInfo.data", data);
      if (data.success) {
        resolve()
      } else {
        reject();
      }
    })
  });
}

module.exports = {
  saveStaff: saveStaff,
}